<?php
/**
 * Created by PhpStorm.
 * User: user1
 * Date: 2018/5/21
 * Time: 16:36
 */

namespace app\api\model;


class Comment extends BaseModel
{
    /**
     * 获取评论列表
     * @param array $where
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public static function getList($where = []) {
        return self::where($where)
            ->order('id desc')
            ->paginate(input('param.limit', 15), false, ['query' => input('param.')]);
    }
}